/*
 * @Author: 康家赫 13349195+kangjiahe666@user.noreply.gitee.com
 * @Date: 2024-04-26 11:34:38
 * @LastEditors: 康家赫 13349195+kangjiahe666@user.noreply.gitee.com
 * @LastEditTime: 2024-04-26 22:04:54
 * @FilePath: \MDK-ARMd:\Desktop\mcu_practice\mcu_experience1\kjh_usingcode\beep.c
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "gpio.h"
#include "beep.h"
#include "stm32f1xx_hal.h"

void beep_turnup()
{
    HAL_GPIO_WritePin(GPIOB, GPIO_PIN_15, GPIO_PIN_SET);
}

void beep_turndown()
{
    HAL_GPIO_WritePin(GPIOB, GPIO_PIN_15, GPIO_PIN_RESET);
}

void tips_1()
{
    beep_turnup();
    HAL_Delay(100);
    beep_turndown();
    HAL_Delay(100);
    beep_turnup();
    HAL_Delay(100);
    beep_turndown();    
}
void tips_2()
{
    beep_turnup();
    HAL_Delay(200);
    beep_turndown();
	  HAL_Delay(800);
 }
